package com.eliota.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author MG
 * @since 2023-04-01
 */
@Getter
@Setter
  @ApiModel(value = "Device对象", description = "")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      private String name;

      @ApiModelProperty("设备编号")
      private String num;

      @ApiModelProperty("设备状态（0，未借出，1，以借出）")
      private Integer bStatus;

      @ApiModelProperty("备注")
      private String remark;

      @ApiModelProperty("设备种类")
      private Integer typeId;

      @ApiModelProperty("设备状态（0，未借出，1，以借出）")
      private Integer delFlag;

      //delFlag中文，0未借出，1已借出
      @TableField(exist = false)
      private String borrow_status;

      //根据种类记数
      @TableField(exist = false)
      private Integer typeCount;





}
